

package pojo;

import util.DealCharacterUtil;

import java.math.BigInteger;

/**
 * @author tms
 * @Date 2023.9.13
 */
public class SimHash {
    /**
     * 论文内容
     */
    private String content;
    /**
     * 分词向量
     */
    private BigInteger bigSimHash;
    /**
     * 初始桶大小
     */
    private Integer hashCount = 64;

    public SimHash(String content, Integer hashCount) {
        this.content = DealCharacterUtil.clearSpecialCharacters(content);
        this.hashCount = hashCount;
        //TODO 构建完SimHash后，bigSimHash还没设置值，当调用完service的simHashConstruct方法后，要记得用调用后的结果set该值
        this.bigSimHash = null;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public BigInteger getBigSimHash() {
        return bigSimHash;
    }

    public void setBigSimHash(BigInteger bigSimHash) {
        this.bigSimHash = bigSimHash;
    }

    public Integer getHashCount() {
        return hashCount;
    }

    public void setHashCount(Integer hashCount) {
        this.hashCount = hashCount;
    }

}
